package com.digital.herbarium.Mapper;

import com.digital.herbarium.Entity.Specimen;
import com.digital.herbarium.Entity.SpecimenUrl;
import com.digital.herbarium.Entity.Stat;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface SpecimenMapper {


    //    获取基础库列表
    List<Specimen> getSpecimenInfo(Specimen specimen);
    //    添加信息
    void addSpecimen(Specimen specimen );
    //编辑信息
    void editSpecimen(Specimen specimen);
    //删除信息
    void delSpecimen(@Param("ids") Long[] id);

    //批量新增
    void bachAdd(@Param("list") List<Specimen> list);


    List<Stat> getStatGroupByType();

    Integer getTotal(@Param("queryTime") String queryTime);

    Integer getImageTotal(@Param("queryTime") String queryTime);


    List<Stat> getTotalGroupByDate(@Param("startTime") String startTime,@Param("endTime") String endTime);

    Integer checkExist(Specimen specimen);


    //添加图片
    void addImg(SpecimenUrl specimenUrl);

    List<Specimen> getTheRest();

    //获取未添加水印图片的图片

    List<SpecimenUrl> getNoWaterImage();

    void batchUpdateImage(@Param("list") List<String> list);

    Integer getFamilyTotal();
    Integer getGenusTotal();
    Integer getSpeciesTotal();
    Integer getImageTotalByType(@Param("isVideo") Integer isVideo, @Param("type") Integer type);

}
